package com.hmz.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 护照表
 * @author hmz
 * @version v1.0
 * @data 2020/09/14
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Passports {
    private Integer id;
    /**
     * 国籍
     */
    private String nationality;
    /**
     * 有效期
     */
    private Date expire;

    private Integer passengersId;
    /**
     * 映射一对一关系
     * 旅客信息
     */
    private Passengers passengers;

    @Override
    public String toString() {
        return "Passports{" +
                "id=" + id +
                ", nationality='" + nationality + '\'' +
                ", expire=" + expire +
                ", passengersId=" + passengersId +
                '}';
    }
}
